﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;

namespace UPnPControllerServices
{
    [ServiceContract]
    public interface IUPnPMediaBrowserService
    {
        [OperationContract]
        ICollection<MediaServer> GetAvailableMediaServers();

        [OperationContract]
        ICollection<MediaItem> GetAvailableMediaFromServer(Guid serverId);

        [OperationContract]
        ICollection<MediaRenderer> GetAvailableMediaRenderers();

        [OperationContract]
        void PlayMedia(string mediaItemUri, Guid serverId, Guid rendererId);

        [OperationContract]
        void ResumePlay(Guid rendererId);

        [OperationContract]
        void Stop(Guid rendererId);

        [OperationContract]
        void Pause(Guid rendererId);

        [OperationContract]
        void SkipForward(Guid rendererId, int skipSeconds);

        [OperationContract]
        void SkipBackwards(Guid rendererId, int skipSeconds);
    }
}